<%@ include file="/WEB-INF/views/includes.jsp" %>
<%@ include file="/WEB-INF/views/header.jsp" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
	<!-- 
	     	<form:form id="create" action="/pool/create" method="get">
	            <div align='center'><input type="submit" id="createPoolButton" name="createPoolButton" value=""/></div>
	        </form:form>
    -->
        <br/>
	        <form:form id="join" action="/pool/join" method="get">
	            <div align='center'><input type="submit" id="joinPoolButton" name="joinPoolButton" value=""/></div>
	        </form:form>
		<br/>
		

		<div class="curved-box">
		<h2/>
			   <c:choose>
			     <c:when test="${fn:length(userPools)>0}">
			        <h1>Your Subscribed Pools</h1>
							<c:forEach var="userPool" items="${userPools}">
							<h3>
								<a href="<c:url value='/users/predictions/${userPool.id}'/>">${userPool.poolName}    -   ${userPool.eventName} </a><br/>
							</h3>
							</c:forEach>
			      </c:when>
			      <c:otherwise>
			        <h3>You have not subscribed to any Pools.</h3>
			      </c:otherwise>
			   </c:choose>
		<p/>	   
		</div>
    </body>
 
</html>